package com.addcn.fog.core {
	import flash.utils.Dictionary;
	/**
	 * Dictionary 列表集合基类
	 * Controller、ModelLocator、ViewLocator、Notifier 都继承此类
	 * 
	 */
	public class MvcLocator {
		protected var m_weeMap:Dictionary = new Dictionary();
		
		protected function add(key:*, value:*):void {
			m_weeMap[key] = value;
		}
		
		protected function remove(key:*):void {
			if (hasExists(key)){
				delete m_weeMap[key];
			}
		}
		
		protected function retrieve(key:*):* {
			return m_weeMap[key];
		}
		
		protected function hasExists(key:*):Boolean {
			return (m_weeMap[key] != undefined);
		}
	}
}
